package com.yvon.im.session;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : wangyufeng
 * @since : 2021-11-18
 */
@Data
@NoArgsConstructor
public class Session {

    private String username;

    private String nickname;

    private String headPic;

    public Session( String username) {
        this.username = username;
    }

    public Session( String username, String nickname) {
        this.nickname = nickname;
        this.username = username;
    }

    public Session( String username, String nickname, String headPic) {
        this.nickname = nickname;
        this.username = username;
        this.headPic = headPic;
    }

    @Override
    public String toString() {
        return username + ":" + nickname;
    }
}
